package com.learn.hibernatevalidator.chapter03.cascaded;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;

/**
 * @author: liyf
 * @create: 2025-01-01 16:37
 **/

public class Garage {

    @NotNull
    private String name;

    @Valid
    public Garage(String name) {
        this.name = name;
    }

    public boolean checkCar(@Valid @NotNull Car car) {
        //...
        return false;
    }
}
